<!DOCTYPE html>
<html>
<!-- Mirrored from www.zi-han.net/theme/hplus/empty_page.html by HTTrack Website Copier/3.x [XR&CO'2014], Wed, 20 Jan 2016 14:19:52 GMT -->

<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>导航设置</title>
    <meta name="keywords" content="第八站,广告分类,后台HTML,响应式后台">
    <meta name="description" content="第八站管理后台">
    <link rel="shortcut icon" href="favicon.ico">
    <link href="css/bootstrap.min14ed.css?v=3.3.6" rel="stylesheet">
    <link href="css/font-awesome.min93e3.css?v=4.4.0" rel="stylesheet">
    <link href="css/plugins/sweetalert/sweetalert.css" rel="stylesheet">
    <link href="css/animate.min.css" rel="stylesheet">
    <link href="css/style.min862f.css?v=4.1.0" rel="stylesheet">
    <link rel="stylesheet" type="text/css" href="libs/page/pager.css">
    <link rel="stylesheet" href="css/common.css">
    <style type="text/css">
        .checkbox input[type=checkbox], .checkbox-inline input[type=checkbox], .radio input[type=radio], .radio-inline input[type=radio] {
             margin-top: 1px; 
             margin-left: -15px;
        }
        .checkbox-inline{
            margin-bottom: 10px!important;
        }
        .label-wrapper{
            width: 100%;
            height: 500px;
            overflow: auto;
        }
        .nav-inline{
            margin: 10px 0 10px 20px;
        }
    </style>
</head>

<body class="gray-bg">
    <div class="row wrapper border-bottom white-bg page-heading">
        <div class="col-sm-4">
            <h2>导航设置</h2>
            <ol class="breadcrumb">
                <li>
                    <a href="index-2.html">主页</a>
                </li>
                <li>
                    <span>官网WEB</span>
                </li>
                <li>
                    <span>导航设置</span>
                </li>
                <li>
                    <strong>导航设置</strong>
                </li>
            </ol>
        </div>
        <div class="col-sm-8">
            <div class="title-action">
                <!-- <a href="empty_page.html" class="btn btn-primary">活动区域</a> -->
            </div>
        </div>
    </div>
    <div class="wrapper wrapper-content">
        <div class="ibox float-e-margins">
            <div class="ibox-content container-fiuled">
                <div class="row">
                    <div class="col-sm-12">
                        <form class="form-horizontal" role="form">
                            <div class="form-group">
                                <label class="col-sm-1 control-label">标签类名</label>
                                <div class="col-sm-10">
                                    <input type="text" placeholder="请输入标签类名" class="form-control">
                                </div>
                            </div>
                            <div class="form-group">
                                <label class="col-sm-1 control-label">关联标签</label>
                                <div class="col-sm-10">
                                    <a class="btn btn-default " onclick="navigationModal()">选择标签</a>
                                </div>
                            </div>
                            <div class="form-group">
                                <label class="col-sm-1 control-label">排序</label>
                                <div class="col-sm-10">
                                    <input type="text" value="50" class="form-control">
                                </div>
                            </div>
                            <div class="form-group">
                                <div class="col-sm-offset-1 col-sm-10">
                                    <button type="button" class="btn btn-primary">提交</button>
                                </div>
                            </div>
                        </form>
                    </div>
                </div>
                <div class="row">
                    <div class="col-md-1">
                    </div>
                    <div class="col-sm-10">
                        <table class="table table-bordered table-hover table-center">
                            <thead>
                                <tr>
                                    <th width="100px">序号</th>
                                    <th>名称</th>
                                    <th>关联标签</th>
                                    <th>排序</th>
                                    <th>添加时间</th>
                                    <th>操作</th>
                                </tr>
                            </thead>
                            <tbody>
                                <tr>
                                    <td>1</td>
                                    <td>小说</td> 
                                    <td><button type="button" class="btn btn-xs yellow-btn" onclick="myModal()">查看</button></td>
                                    <td>50</td>
                                    <td>2018-06-05</td>
                                    <td>
                                        <button type="button" class="btn btn-xs btn-success margin-r-20">编辑</button>
                                        <button type="button" class="btn btn-xs btn-danger deleteBtn">删除</button>
                                    </td>
                                </tr>
                                <tr>
                                    <td>2</td>
                                    <td>霸道总裁小说</td>
                                    <td><button type="button" class="btn btn-xs yellow-btn" onclick="myModal()">查看</button></td>
                                    <td>50</td>
                                    <td>2018-06-05</td>
                                    <td>
                                        <button type="button" class="btn btn-xs btn-success margin-r-20">编辑</button>
                                        <button type="button" class="btn btn-xs btn-danger deleteBtn">删除</button>
                                    </td>
                                </tr>
                            </tbody>
                        </table>
                        <dl class=" pull-right">
                            <ul class="pagination" id="page1"></ul>
                        </dl>
                    </div>
                </div>
            </div>
            <!-- 标签弹框 -->
            <div class="modal fade" id="navigationModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
                <div class="modal-dialog websiteModal">
                    <div class="modal-content">
                        <div class="modal-header">
                            <button type="button" class="close" data-dismiss="modal" aria-hidden="true">
                                &times;
                            </button>
                            <h4 class="modal-title" id="myModalLabel">标签</h4>
                        </div>
                        <div class="modal-body row">
                            <div class="label-wrapper">
                                <label class="checkbox-inline">
                                    <input type="checkbox" class="chooseFruit" value="1"> 标签1
                                </label>
                                <label class="checkbox-inline">
                                    <input type="checkbox" class="chooseFruit" value="2"> 标签2
                                </label>
                                <label class="checkbox-inline">
                                    <input type="checkbox" class="chooseFruit" value="3"> 标签3
                                </label>
                                <label class="checkbox-inline">
                                    <input type="checkbox" class="chooseFruit" value="1"> 标签1
                                </label>
                                <label class="checkbox-inline">
                                    <input type="checkbox" class="chooseFruit" value="2"> 标签2
                                </label>
                                <label class="checkbox-inline">
                                    <input type="checkbox" class="chooseFruit" value="3"> 标签3
                                </label>
                                <label class="checkbox-inline">
                                    <input type="checkbox" class="chooseFruit" value="1"> 标签1
                                </label>
                                <label class="checkbox-inline">
                                    <input type="checkbox" class="chooseFruit" value="2"> 标签2
                                </label>
                                <label class="checkbox-inline">
                                    <input type="checkbox" class="chooseFruit" value="3"> 标签3
                                </label>
                                <label class="checkbox-inline">
                                    <input type="checkbox" class="chooseFruit" value="1"> 标签1
                                </label>
                                <label class="checkbox-inline">
                                    <input type="checkbox" class="chooseFruit" value="2"> 标签2
                                </label>
                                <label class="checkbox-inline">
                                    <input type="checkbox" class="chooseFruit" value="3"> 标签3
                                </label>
                                <label class="checkbox-inline">
                                    <input type="checkbox" class="chooseFruit" value="1"> 标签1
                                </label>
                                <label class="checkbox-inline">
                                    <input type="checkbox" class="chooseFruit" value="2"> 标签2
                                </label>
                                <label class="checkbox-inline">
                                    <input type="checkbox" class="chooseFruit" value="3"> 标签3
                                </label>
                                    <label class="checkbox-inline">
                                    <input type="checkbox" class="chooseFruit" value="1"> 标签1
                                </label>
                                <label class="checkbox-inline">
                                    <input type="checkbox" class="chooseFruit" value="2"> 标签2
                                </label>
                                <label class="checkbox-inline">
                                    <input type="checkbox" class="chooseFruit" value="3"> 标签3
                                </label>
                                <label class="checkbox-inline">
                                    <input type="checkbox" class="chooseFruit" value="1"> 标签1
                                </label>
                                <label class="checkbox-inline">
                                    <input type="checkbox" class="chooseFruit" value="2"> 标签2
                                </label>
                                <label class="checkbox-inline">
                                    <input type="checkbox" class="chooseFruit" value="3"> 标签3
                                </label>
                                <label class="checkbox-inline">
                                    <input type="checkbox" class="chooseFruit" value="1"> 标签1
                                </label>
                                <label class="checkbox-inline">
                                    <input type="checkbox" class="chooseFruit" value="2"> 标签2
                                </label>
                                <label class="checkbox-inline">
                                    <input type="checkbox" class="chooseFruit" value="3"> 标签3
                                </label>
                                <label class="checkbox-inline">
                                    <input type="checkbox" class="chooseFruit" value="1"> 标签1
                                </label>
                                <label class="checkbox-inline">
                                    <input type="checkbox" class="chooseFruit" value="2"> 标签2
                                </label>
                                <label class="checkbox-inline">
                                    <input type="checkbox" class="chooseFruit" value="3"> 标签3
                                </label>
                                <label class="checkbox-inline">
                                    <input type="checkbox" class="chooseFruit" value="1"> 标签1
                                </label>
                                <label class="checkbox-inline">
                                    <input type="checkbox" class="chooseFruit" value="2"> 标签2
                                </label>
                                <label class="checkbox-inline">
                                    <input type="checkbox" class="chooseFruit" value="3"> 标签3
                                </label>
                            </div>
                        </div>
                        <div class="modal-footer" style="text-align: center;">
                            <button type="button" class="btn push-btn btn-default w100" data-dismiss="modal">关闭</button>
                            <button type="button" class="btn push-btn btn-primary w100" onclick="getCheckData()">关联</button>
                        </div>
                    </div>
                </div>
            </div>
            <!-- 查看关联标签 -->
           <div class="modal fade" id="myModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
                <div class="modal-dialog">
                    <div class="modal-content row">
                        <div class="modal-header" style="padding: 15px 20px;">
                            <button type="button" class="close" data-dismiss="modal" aria-hidden="true">
                                &times;
                            </button>
                            <h4 class="modal-title" id="myModalLabel">关联标签</h4>
                        </div>
                        <div class="modal-body" style="padding: 15px 15px 15px 0;min-height:230px">
                            <label class="nav-inline">标签1</label>
                            <label class="nav-inline">标签2</label>
                            <label class="nav-inline">标签3</label>
                            <label class="nav-inline">标签1</label>
                            <label class="nav-inline">标签2</label>
                            <label class="nav-inline">标签3</label>
                            <label class="nav-inline">标签1</label>
                            <label class="nav-inline">标签2</label>
                            <label class="nav-inline">标签3</label>
                            <label class="nav-inline">标签1</label>
                            <label class="nav-inline">标签2</label>
                            <label class="nav-inline">标签3</label>
                            <label class="nav-inline">标签1</label>
                            <label class="nav-inline">标签2</label>
                            <label class="nav-inline">标签3</label>
                            <label class="nav-inline">标签1</label>
                            <label class="nav-inline">标签2</label>
                            <label class="nav-inline">标签3</label>
                        </div>
                        <div class="modal-footer">
                            <button type="button" class="btn btn-default" data-dismiss="modal">关闭</button>
                        </div>
                    </div>
                </div>
            </div>
            <!-- 查看关联标签end -->   
        </div>
    </div>
    <script src="js/jquery.min.js?v=2.1.4"></script>
    <script src="js/bootstrap.min.js?v=3.3.6"></script>
    <script src="js/content2.min.js?v=1.0.0"></script>
    <script src="js/plugins/sweetalert/sweetalert.min.js"></script>
    <!-- <script type="text/javascript" src="http://tajs.qq.com/stats?sId=9051096" charset="UTF-8"></script> -->
    <script type="text/javascript" src="libs/page/pager.js"></script>
    <script type="text/javascript">
        function navigationModal() {
            $('#navigationModal').modal('show');
        }
        function myModal(){
            $('#myModal').modal('show');
        }
        function getCheckData(){
            var arr = new Array();
            $('.chooseFruit:checked').each(function(i){ 
                arr[i] = parseInt($(this).val());
            });
            console.log(arr);
        } 

        $('.deleteBtn').click(function () {
            swal({
                title: "您确定要删除这条数据吗",
                text: "删除后将无法恢复，请谨慎操作！",
                type: "warning",
                showCancelButton: true,
                confirmButtonColor: "#DD6B55",
                confirmButtonText: "删除",
                closeOnConfirm: false
            }, function () {
                // do someting
                swal("删除成功！", "您已经永久删除了这条数据。", "success");
            });
        });


        $(function(){
            // 分页
            Page({
                num:20,                  //页码数
                startnum:0,             //指定页码
                elem:$('#page1'),       //指定的元素
                callback:function(n){   //回调函数
                    console.log(n);
                }
            });
        })
    </script>
</body>
<!-- Mirrored from www.zi-han.net/theme/hplus/empty_page.html by HTTrack Website Copier/3.x [XR&CO'2014], Wed, 20 Jan 2016 14:19:52 GMT -->

</html>